<include file="Public/header" />
<include file="Public/workfooter" />
<div class="container marker-work">
    <div class="row" >
    <div class="col-md-9">
       <form name="CLD" class="content">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="datetable table  table-striped ">
            <thead>
            <tr>
            <td colSpan=7><span>公历</span>
                <select id="selectSY" name="SY" onchange="changeCld();" style="font-SIZE: 9pt">
                <script>
                    for(i=1900;i<2050;i++) document.write('<option>'+i+'</option>');
                </script>
                 </select><span>年</span>
                 <select id="selectSM"name="SM" onchange="changeCld();" style="font-SIZE: 9pt">
                <script>
                    for(i=1;i<13;i++) document.write('<option>'+i);
                </script>
                </select><span>月</span>
                <span class=" btn-header" id="returnCalendar">返回今日</span>
                <span id="clockLogin">
                </span>
                <span id="GZ"></span>
              </td>
            </tr>
            </thead>
            <tbody >
              <tr style="background:#eee;">
                <td width="54">日</td>
                <td width="54">一</td>
                <td width="54">二</td>
                <td width="54">三</td>
                <td width="54">四</td>
                <td width="54">五</td>
                <td width="54">六</td>
              </tr>            
              <script>
              var gNum;
              for(i=0;i<6;i++) {
                 document.write('<tr align="center" id="calendarTr">' );
                 for(j=0;j<7;j++) {
                    gNum = i*7+j;
                    document.write('<td  class="calendarTd" id="GD' + gNum +'"><font  class="font1" id="SD' + gNum +'"  size=2 face="Arial Black"');
                    if(j == 0) document.write('color="red"');
                    if(j == 6) document.write('color="#000080"');
                    document.write('></font><br/><span id="LD' + gNum + '" size=2 style="font-size:9pt"></span></td>');
                 }
                 document.write('</tr>');
              }
             </script>
           </tbody>
        </table>
      </form>
      <button class="btn btn-default" id="oldWorkDivBtn">日前 <i class="fa fa-location-arrow"></i></button>
      <div id="oldWorkDiv">
        <if condition="$oldHtmlCount eq 0">
            <div class="col-md-12 text-center">
             <h4><i class="fa fa-warning "></i> 无记事</h4>
            </div>
          <else />
         <div id="oldtimeline">
            <foreach name="oldHtmlRows" item="vo">
                <div class="timeline-item">
                    <div class="timeline-icon">
                    </div>
                    <div class="timeline-content <if condition='$key%2 eq 0'><else/>right</if>">
                      <h2><{$vo.worktime}></h2>
                      <foreach name="vo" item="voItem">
                      <if condition="$voItem.workname|strlen gt 1">
                      <else/>
                      <a class="list-group-item" role="button" data-toggle="collapse" href="#oldItem<{$voItem.workid}>" aria-expanded="false" aria-controls="oldItem<{$voItem.workid}>"><span><{$voItem.workname}></span>  <font color="#D9534F"><if condition="$voItem.worklevel eq 3">！！！  <elseif condition="$voItem.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                        <div class="collapse" id="oldItem<{$voItem.workid}>">
                          <div class="well">
                          <{$voItem.workother}>
                          </div>
                        </div>
                      </if>
                      </foreach>
                    </div>
                </div>
            </foreach>
            </div>
          </if>
      </div>
      <hr>
    </div><!--asd-->
        <div class="col-md-3" >
            <section class="side-div">
                <div class="panel">
                    <a href="__CONTROLLER__/newWork/" class="btn btn-primary btn-lg btn-block">新记事</a>
                </div>
            </section>
            <section id="workDiv" class="side-div">
              <font class="panel-title" id="workDivTime"><i class="fa fa-clock-o"></i>&nbsp;&nbsp;当前  •  <span id="clickDateSpan"><{$dateNow}></span></font>
              <hr>
                <!-- <div class="panel" id="workDivText"> -->
                <div id="clickDateDiv">
                  <if condition="$nowWorkCount eq 1">
                    <li class="list-group-item">
                      <{$nowWorkRows[0]['workname']}>
                    </li>
                    <div class="oneWorkWell text-center">
                        <i class="fa fa-level-down"></i>
                    </div>
                    <div class="oneWorkWell">
                      <div class="panel">
                        <{$nowWorkRows[0]['workother']}>
                      </div>
                    </div>
                    
                <elseif condition="$nowWorkCount gt 1"/>
                    <volist name="nowWorkRows" id="vo">
                      <a class="list-group-item"  role="button" data-toggle="collapse" href="#workid<{$vo.workid}>" aria-expanded="false" aria-controls="workid<{$vo.workid}>"><span ><{$vo.workname}></span> <font color="#D9534F"><if condition="$vo.worklevel eq 3">！！！  <elseif condition="$vo.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                        <div class="collapse" id="workid<{$vo.workid}>">
                          <div class="well">
                            <{$vo.workother}>
                          </div>
                        </div>
                    </volist> 
                <else/>
                    <div class="panel text-center" id="workDivText">
                        <font class="noWork"><i class="fa fa-calendar-times-o"></i>  暂无记事</font>
                    </div>
                </if>
                </div>
            </section>
        </div>
        <div class="col-md-9">
          <div class="FutureWorkTitle text-center">
            <h4>目前</h4>
            <hr>
          </div>
          <if condition="$futureHtmlCount eq 0">
            <div class="col-md-12 text-center">
             <h4><i class="fa fa-warning "></i> 无记事</h4>
            </div>
          <else />
          <div id="timeline">
            <foreach name="futureHtmlRows" item="vo">
                <div class="timeline-item">
                    <div class="timeline-icon">
                    </div>
                    <div class="timeline-content <if condition='$key%2 eq 0'><else/>right</if>">
                      <h2><{$vo.worktime}></h2>
                      <foreach name="vo" item="voItem">
                      <if condition="$voItem.workname|strlen gt 1">
                      <else/>
                      <a class="list-group-item" role="button" data-toggle="collapse" href="#futureItem<{$voItem.workid}>" aria-expanded="false" aria-controls="futureItem<{$voItem.workid}>"><span><{$voItem.workname}></span>  <font color="#D9534F"><if condition="$voItem.worklevel eq 3">！！！  <elseif condition="$voItem.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                        <div class="collapse" id="futureItem<{$voItem.workid}>">
                          <div class="well">
                          <{$voItem.workother}>
                          </div>
                        </div>
                      </if>
                      </foreach>
                    </div>
                </div>
            </foreach>
          </div>
          </if>
        </div><!--timeline end-->
    </div><!--row end-->
</div><!--cintainer end-->
<script>
  initial();
</script>

<include file="Public/footer"/>

